<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>错误</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header bg-danger text-white">
                    <h3 class="card-title mb-0">发生错误</h3>
                </div>
                <div class="card-body">
                    <div class="alert alert-danger" role="alert">
                        <p th:text="${error}">错误信息</p>
                    </div>
                    <a href="/announcements" class="btn btn-primary">返回公告列表</a>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html> 